package com.zxc.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    @GetMapping("/api/v1/user/findUser/{name}")
    WmUser findUserByName(@PathVariable("name") String ApUserName);
    @PostMapping("/api/v1/user/save")
    ResponseResult save(@RequestBody WmUser wmUser);
    @GetMapping("/api/v1/channel/findChannels")
    ResponseResult findChannels();
}
